﻿@model  NCP.Recruiting.WebApp.Models.JobPositionFormModel
@{
    ViewBag.Title = "编辑职位";
}

<script type="text/javascript">
    $(function () { 
        if(@(Model.CompanyInfo.RemainingQuantity) <= 0){
            $('#btnPost').attr('disabled','disabled');
        }
    });
</script>

@using (Html.BeginForm())
{
    @Html.Hidden("Id", Model.Id)
    @Html.Partial("_CreateOrUpdate", Model)
    <div id="publishBtns">
        <div class="publishBtns_contents">
            <p>
                @Html.ActionLink("取消", "List")
                <input value="保存" class="btnglaycss" type="submit" name="SaveInfo"  />
                <input value="发布" class="btnbluecss" type="submit" name="Post" id="btnPost"  />
            </p>
        </div>
    </div>
}
